<template>
	<view>
		<my-adress></my-adress>
		<view class="title">
			<uni-icons type="shop" size="18"></uni-icons>
			<text>购物车</text>
		</view>
		<view class="item">
			<block v-for="item in cartList" :key="item.goods_id">
				<my-goods_item @getCheckedState="getCheckedState" :goods="item" :numShow="true" :radioShow="true"></my-goods_item>
			</block>
		</view>
		<my-settle></my-settle>
	</view>
</template>

<script>
	import bedgeCart from '../../mixins/cart.js'
	import { mapState } from 'vuex';
	export default {
		data() {
			return {

			};
		},
		mixins:[bedgeCart],
		computed : {
			...mapState('cart',['cartList'])
		},
		methods : {
			getCheckedState(goods) {
				this.$store.commit('cart/getCheckState',goods)
			}
		}
	}
</script>

<style lang="scss">

</style>